<?php

namespace common\models\Ad;
use Yii;
/**
 * This is the model class for table "ad_position".
 *
 * @property integer $position_id
 * @property string $position_name
 * @property integer $ad_width
 * @property integer $ad_height
 * @property string $position_desc
 */
class AdPosition extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ad_position';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ad_width', 'ad_height'], 'integer'],
            [['position_name'], 'string', 'max' => 60],
            [['position_desc'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'position_id' => Yii::t('app', '广告位置'),
            'position_name' => Yii::t('app', '广告位名称'),
            'ad_width' => Yii::t('app', '位置宽度'),
            'ad_height' => Yii::t('app', '位置高度'),
            'position_desc' => Yii::t('app', '广告位描述'),
        ];
    }
}
